import cProfile
import pstats

import my_file_op
import FileTree

def test():
    cached_filetree = FileTree.FileTree()
    cachefile = my_file_op.CacheFile("my_zhangli_file_cache.txt")
    c = cachefile.get_to_file().decode("utf-8")
    cached_filetree.load(c)


cProfile.run("test()", "timeit")
p = pstats.Stats('timeit')
p.sort_stats('time')
p.print_stats(6)